import { defineConfig } from 'vite'
import dts from "vite-plugin-dts"
import { resolve } from "path"

export default defineConfig({
    plugins: [
        dts({
            outDir: "dist/types",
            include: ["src"],
            tsconfigPath: "tsconfig.app.json",
        })
    ],
    build: {
        lib: {
            entry: resolve(__dirname, "lib/index.ts"),
            formats: ['es']
        },
    }
})